package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.CarottaProductSkuMapper;
import com.atmilan.quartz.model.entity.carotta.CarottaProductSku;
import com.atmilan.quartz.service.ICarottaProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarottaProductSkuServiceImpl extends ServiceImpl<CarottaProductSkuMapper, CarottaProductSku> implements ICarottaProductSkuService {
    @Autowired
    CarottaProductSkuMapper carottaProductSkuMapper;

    @Override
    public void deleteAll() {
        carottaProductSkuMapper.deleteAll();
    }
    
    @Override
    public void copyAll() {
        carottaProductSkuMapper.deleteProductSkuBack();
        carottaProductSkuMapper.copyProductSkuBack();
    }

}
